import apirequest from '@/utils/apirequest'

// 查询全部仓库
export const getWarehouseList = params => apirequest.get('/warehouse/page', { params })

// 修改仓库
export const updataWare = data => apirequest.put('/warehouse', data)

// 请求仓库编码
export const getCK = () => apirequest.get('/codeFactory/next/CK')

// 新增仓库
export const addWare = data => apirequest.post('/warehouse', data)

// 查询仓库详情
export const searchWare = id => apirequest.get(`/warehouse/${id}`)

// 按需查询仓库
export const getWarehouse = params => apirequest.get('/warehouse/list', { params })
